import axios from '@/libs/api.request'

export const getList = info => {
  return axios.request({
    url: 'permissions/getList',
    data: info,
    method: 'post'
  })
}

export const add = info => {
  return axios.request({
    url: 'permissions/add',
    data: info,
    method: 'post'
  })
}

export const put = info => {
  return axios.request({
    url: 'permissions/edit',
    data: info,
    method: 'post'
  })
}

export const del = info => {
  return axios.request({
    url: 'permissions/delete',
    data: info,
    method: 'post'
  })
}

// 状态切换  推荐
export const change = info => {
  return axios.request({
    url: 'permissions/status',
    data: info,
    method: 'post'
  })
}

export const getRuleTree = info => {
  return axios.request({
    url: 'permissions/getRuleTree',
    data: info,
    method: 'post'
  })
}
